package com.myapps.controllers;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.myapps.bean.User;


@Controller
public class HelloWorldController {

    @RequestMapping(value = "/helloworld")
    public ModelAndView helloWord(User user) {
        System.out.println("dddddddddddddddddddddd" + user.getName());
        return new ModelAndView("helloworldPage", "name", "hdh");
    }


    @RequestMapping(value = "/say")
    public ModelAndView say() {
        return new ModelAndView("helloworldPage", "name", "hdh");
    }
}
